package com.tiger.log.server.service;

import com.tiger.log.common.entity.SysAuthLog;

import java.text.ParseException;
import java.util.List;

/**
 * @InterfaceName SysAuthLogService
 * @Description TODO
 * @Author huxuehao
 **/
public interface SysAuthLogService {
    List<SysAuthLog> getAll();

    SysAuthLog getById(String id);

    List<SysAuthLog> getByUserCode(String userCode);

    int deleteAll();

    int deleteByIds(List<String> ids);

    int deleteByUserCodes(List<String> userCodes);

    /* 生成日志 */
    Boolean asyncGenLog(SysAuthLog authLog);

    /* 获取日志周期,以天为单位 */
    Boolean validDayCycle() throws ParseException;

    /* 执行日志轮转 */
    Boolean doRotate(String tableSuffix) throws ParseException;
}
